Embed PDFs from Google Drive
Some of you might be curious about why I put this snippet here, especially since Google already provides a function called "Embed item...".
However, if you paste the code that Google gives you, it works locally but breaks after being published to DG:
I don't know why 😑
<iframe src="https://drive.google.com/file/d/1PacJp3YdhrNR9wzc5ylpH6nkcmLvHjVM/preview"
width="100%" height="480" allow="autoplay" aspect-ratio="4 / 4" overflow="hidden" position="absolute" scrolling="no">
</iframe>
The result:
References
-
sharp_blade_457. (2023, February 9). How to preview external web page link in Obsidian? [Reddit Post]. R/ObsidianMD. www.reddit.com/r/ObsidianMD/comments/10xy6au/how_to_preview_external_web_page_link_in_obsidian/
-
Unable to embed pdf from google drive - Ask for Help. (2024, February 23). Glide Community. https://community.glideapps.com/t/unable-to-embed-pdf-from-google-drive/71076/5